<?php
session_start();
include "Classes/Login.php";

if(isset($_GET["op"]))
{
	if ($_GET["op"] == "login")
	{
		$loginClass = new Login();
		$retVal = $loginClass->Authenticate($_POST["username"],$_POST["password"]);
		if($retVal)
		Header("Location: index.php");
	}
}
//If all went right the Web form appears and users can log in


?>

<form action="?op=login" method="POST">
Username: <input name="username" size="15"><br />
Password: <input type="password" name="password" size="8"><br />
<input type="submit" value="Login">
</form>

















